From 34c0deb00674cb74f0860497987703c6d431b8b0 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 7 May 2013 13:41:21 +0200 Subject: [PATCH] GtkPlacesSidebar: Fix an uninitialized variable in the error code path Initialize it to NULL early so that we won't try to free an uninitialized variable when handling an error. --- gtk/gtkplacessidebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 310b6c7975..87e0c5aca5 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -1606,6 +1606,7 @@ drag_motion_callback (GtkTreeView *tree_view, action = 0; drop_as_bookmarks = FALSE; + path = NULL; if (!sidebar->drag_data_received) { if (!get_drag_data (tree_view, context, time)) { @@ -1613,7 +1614,6 @@ drag_motion_callback (GtkTreeView *tree_view, } } - path = NULL; res = compute_drop_position (tree_view, x, y, &path, &pos, sidebar); if (!res) { -- 2.30.2